/* 
 * File:   F03.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F03_H
#define	JRV_F03_H

#include "ecb/base/Problem.h"

#include "ecb/function/Rosenbrock.h"

namespace ecb {
    namespace jrv11 {

        class F03 : public Problem {
        private:
            Problem* rosenbrock;
        public:

            F03(int dimensions)
            : Problem("F03", "Rosenbrock", dimensions,
            -2.048, 2.048, true) {
                rosenbrock = new Rosenbrock;
            }

            ~F03() {
                delete rosenbrock;
            }

            scalar f(const std::vector<scalar>& x) {
                return rosenbrock->f(x);
            }
        };
    }
}

#endif	/* JRV_F03_H */

